package com.bbs.service;

import com.bbs.entity.BBSPostComment;
import com.bbs.entity.RecentCommentListEntity;
import com.bbs.util.PageResult;

import java.util.List;

/**
 * @PackageName: com.bbs.service
 * @ClassName: IBBSPostCommentService
 * @Description:
 * @Author: Rambo
 * @Data: 2024/6/18 10:42
 */
public interface IBBSPostCommentService {
    /**
     * 增加一条回复
     */
    Boolean addPostComment(BBSPostComment postComment);

    /**
     * 删除一条回复
     */
    Boolean delPostComment(Long commentId, Long userId);

    /**
     * 详情页评论列表
     */
    PageResult getCommentsByPostId(Long postId, int commentPage);

    /**
     * 个人中心-最近评论列表
     */
    List<RecentCommentListEntity> getRecentCommentListByUserId(Long userId);
}
